<?php

/* @var $this yii\web\View */

?>
<form class="pull-center login-form" method="post" action="/home/register">
    <input type="text" name="username" placeholder="用户名" class="editor" autocomplete="off"/><br/><br/>
    <input type="text" name="email" placeholder="邮箱" class="editor" autocomplete="off"/><br/><br/>
    <input type="text" name="password" placeholder="密码" class="editor" autocomplete="off"/><br/><br/>
    <input type="submit" value="注册" class="btn"/><br/>
    <p style="width:270px; color: #f00;">
        <?php
        if($model && $model->hasErrors()) {
            foreach ($model->getFirstErrors() as $error_msg) {
                echo $error_msg;
            }
        }
        ?>
    </p>
</form>